﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" AutoEventWireup="true" CodeBehind="AddMovie.aspx.cs" Inherits="MyMovieCollection.Views.Product.AddMovie" %>
<%@ Import Namespace="MyMovieCollection.Controllers"%>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">

 <form method="post" action="/Product/AddMovie"  enctype="multipart/form-data">
        <table style="width: 100%">
        <tr>
            <td width="25%">
                <div>
                    Ad</div>
            </td>
            <td width="75%">
                <input id="Name" name="Name" type="text" style="width:90%" /></td>
        </tr>
        <tr>
            <td width="25%">
                <div>
                    Yıl</div>
                </td>
            <td  width="75%">
                <input id="Year" name="Year" type="text" style="width:90%" /></td>
        </tr>
           <tr>
            <td width="25%">
                <div>
                    Puan</div>
                </td>
            <td  width="75%">
                <input id="Point" name="Point" type="text" style="width:90%" /></td>
        </tr>
         <tr>
            <td width="25%">
                <div>
                    Afiş</div>
                </td>
            <td  width="75%">
                <input id="Poster" name="Poster" type="file" style="width:90%"  /></td>
        </tr>
         <tr>
           
            <td width="25%">
                <div>
                    Kategori</div>
                </td>
            <td  width="75%">
            
               <%= Html.DropDownList("Movie_Type")%></td>
        </tr>
        <tr><td colspan="2" align="center"><input type="submit" value="Kaydet" id="btnKaydet" /> </td></tr>
    </table>
 </form>
 <form method="post" action="/Product/AddCategory">
       <table style="width: 100%">    
      <tr>
            <td width="25%">
                <div>
                    Kategori</div>
                </td>
            <td  width="75%">
                <input id="TypeName" name="TypeName" type="text" style="width:90%" /></td>
        </tr>
         <tr>
            <td width="25%">
                &nbsp;</td>
            <td  width="75%">
                <input  type="submit" value="Kategori Ekle"  /></td>
        </tr>
    </table>
</form>
</asp:Content>
